import { Layer } from "slash-layer";
import form from "./index.vue";
import SelectApi from "./SelectApi.vue";


/**
 * 导入
 * @param row
 */
export async function doImportModal() {
  return await Layer.createForm({
    title: "导入API",
    position: "sm",
    content: {
      component: form,
      props: {}
    }
  } as any);
}

export async function doSelectApiModal(data: any) {
  return await Layer.createForm({
    title: "选择API",
    content: {
      component: SelectApi,
      props: {
        apiData: data
      }
    }
  } as any);
}
